#include "../entities.hpp"

using lms::entities::Book;
using lms::entities::OrderDetail;

OrderDetail::OrderDetail(){
    
}
OrderDetail::OrderDetail(int bookAmountPerUnit, Book* purchasedBook){
    
    this->bookAmountPerUnit = bookAmountPerUnit;
    this->purchasedBook = purchasedBook;
}

int OrderDetail::getBookAmountPerUnit(){
    return bookAmountPerUnit;
}

Book* OrderDetail::getPurchasedBook(){
    return purchasedBook;
}

void OrderDetail::setBookAmountPerUnit(int bookAmountPerUnit)
{
    this->bookAmountPerUnit = bookAmountPerUnit;
}

void OrderDetail::setPurchasedBook(Book* purchasedBook){
    this->purchasedBook = purchasedBook;
}




        
